package com.open.capacity;

import com.open.capacity.common.annotation.EnableApiIdempotent;
import com.open.capacity.common.feign.GlobalFeignConfig;
import com.open.capacity.common.port.PortApplicationEnvironmentPreparedEventListener;
import com.open.capacity.log.annotation.EnableLogging;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;

/**
 * @author liutao
 * @date 2021-03-10 15:52
 */
@Configuration
@EnableLogging
@SpringBootApplication
@EnableDiscoveryClient
@EnableApiIdempotent
@EnableFeignClients(defaultConfiguration = GlobalFeignConfig.class)
public class AnswerCenterApp {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(AnswerCenterApp.class);
        app.addListeners(new PortApplicationEnvironmentPreparedEventListener());
        app.run(args);
    }
}
